<?php

declare(strict_types=1);

namespace sheep\middleware;

use Closure;
use sheep\exception\SheepException;

class CustomSign
{
    public function handle($request, Closure $next)
    {
        if (!check_cus_key()) {
            throw new SheepException('请求不合法，请重试');
        }

        return $next($request);
    }
}

